<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>コントロールパネル</title>
    
    <link href="./assets/styles/default.css" rel="stylesheet" />
    <script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="./assets/scripts/import.js" type="text/javascript"></script>  
</head>
<body>

{include file='include/header.inc.html'}

<div id="container">
	<aside id="accordion">
    	<div id="aside_inner">
    		{include file='include/menu.inc.html'}
        </div>
    </aside>
    
    <article>
    	<h2><span>&nbsp;</span>園生活の様子<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
            <ul>
            	<li class="active"><a href="{$smarty.server.SCRIPT_NAME}"><span>検索</span></a></li>
            	<li><a href="{$smarty.server.SCRIPT_NAME}?op=regist"><span>登録</span></a></li>
            	<li><a href="{$smarty.server.SCRIPT_NAME}?op=setting"><span/>基本設定</a></li>
            </ul>
        </nav>
        
        <section id="content">
        
            <h3>検索</h3>
			<div id="search_form">
        		<form name="search_form" method="post" action="{$smarty.server.SCRIPT_NAME}" >
	            {include file='news/include/search_form.inc.html'}
				<p class="search_submit">
					<button type="submit" class="submit"><span>検索</span></button>
				</p>
				<input type="hidden" name="op" value="serach"/>
				<input type="hidden" name="page_id" value=""/>
        		</form>
			</div>

		{if isset($pager->info)}
            
			{if isset($pager->info.all)}
			<p class="message">{$pager->info.all|number_format}件登録されています。</p>
			{else}
			<p class="message zero">見つかりませんでした。</p>
			{/if}

            {if isset($pager->info.all) && $pager->info.all > 0}
	            <table id="search_result" class="sortable">
		        <thead>
	                <tr>
	                    <th>ID</th>
	                    <th>状態</th>
	                    <th>種別</th>
	                    <th>タイトル</th>
	                    <th>公開期間</th>
	                    <th>登録日時<br/>更新日時</th>
	                    <th>更新</th>
	                </tr>
	    	    </thead>
				{include file='news/include/search_list.inc.html'}
				</table>
				{include file='include/pager.inc.html'}
            {/if}

		{/if}

        </section>
    </article>
    
</div>

{include file='include/footer.inc.html'}

</body>
</html>